Part Number Hot Search : 
EDH8832C 74HC5 AK4114 P7NK40Z E100A SN16913P HE463B TDA8010M
Product Description
Full Text Search
 

To Download FXAS21002C Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  3-axis digital angular rate gyroscope FXAS21002C is a small, low-power, yaw, pitch, and roll angular rate gyroscope with 16 bit adc resolution. the full-scale range is adjustable from 250/s to 2000/s. it features both i 2 c and spi interfaces. FXAS21002C is capable of measuring angular rates up to 2000/s, with output data rates (odr) from 12.5 to 800 hz. an integrated low-pass filter (lpf) allows the host application to limit the digital signal bandwidth. the device may be configured to generate an interrupt when a user-programmable angular rate threshold is crossed on any one of the enabled axes. FXAS21002C is available in a plastic, 24-lead qfn package; the device is guaranteed to operate over the extended temperature range of C40 c to +85 c. features ? supply voltage (v dd ) from 1.95 v to 3.6 v ? interface supply voltage (v ddio ) from 1.62 v to v dd + 0.3 v ? 16-bit digital output resolution ? 250/500/1000/2000/s configurable full-scale dynamic ranges ? full-scale range boost function enables fsr's up to 4000 dps ? angular rate sensitivity of 0.0625/s in 2000/s fsr mode ? noise spectral density of 25 mdps/hz at 64 hz bandwidth (200 hz odr) ? current consumption in active mode is 2.7 ma ? fast transition from standby to active mode (60 ms) ? supported digital interfaces include: ? i 2 c standard and fast mode (100/400 khz) ? spi interface (3- and 4-wire modes, up to 2 mhz) ? fifo buffer is 192 bytes (32 x/y/z samples) with stop and circular operating modes ? output data rates (odr) from 12.5 to 800 hz; programmable low-pass filter to further limit digital output data bandwidth ? low power standby mode ? power mode transition control via external pin for accelerometer-based power management (motion interrupt) ? rate threshold interrupt function ? integrated self-test function ? 8-bit temperature sensor FXAS21002C 24 qfn 4 mm x 4 mm x 1 mm case 2209-01 top view 1 2 3 4 5 6 7 8 9 10 11 12 14 20 21 24 13 15 16 17 18 19 22 23 sa0 / vregd spi_cs_b rsvd_gnd rsvd_gnd gnd2 rst_b int1 scl / sclk rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd i 2 c_b / spi gnd1 gnd4 gnd3 v dd sda / mosi / spi_data miso int2 / pwr_ctrl rsvd_gnd rsvd_gnd v ddio pin connections freescale semiconductor, inc. FXAS21002C data sheet: technical data rev. 2.1, 5/2015 ? 2014-2015 freescale semiconductor, inc. all rights reserved.
typical applications ? industrial and consumer grade robots, uavs, and rc vehicles ? game controller ? gyro-stabilized electronic compass ? orientation determination ? gesture-based user interfaces and human machine interface (hmi) ? indoor navigation ? mobile phones and tablets ? virtual and augmented reality devices (including glasses) ordering information part number temperature range package description shipping FXAS21002Cqr1 C40 c to +85 c qfn tape and reel (1 k) related documentation the FXAS21002C device features and operations are described in a variety of reference manuals, user guides, and application notes. to find the most-current versions of these documents, go to freescale.com/ FXAS21002C, and then click on the documentation tab. 2 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table of contents 1 general description.............................................................. 4 1.1 block diagram............................................................. 4 1.2 pinout...........................................................................4 1.3 system connections....................................................5 1.3.1 typical application circuiti2c mode.............5 1.3.2 typical application circuitspi mode............ 6 1.4 sensitive axes orientations and polarities.................. 7 2 mechanical and electrical specifications.............................. 8 2.1 absolute maximum ratings......................................... 8 2.2 operating conditions................................................... 9 2.3 mechanical characteristics..........................................9 2.4 electrical characteristics............................................. 10 2.5 temperature sensor characteristics........................... 11 3 digital interfaces................................................................... 12 3.1 i2c interface................................................................. 12 3.1.1 i2c operation................................................... 14 3.1.2 i2c read operations........................................ 15 3.1.3 i2c write operations........................................ 15 3.2 spi interface................................................................ 17 3.2.1 general spi operation.................................... 17 3.2.2 spi write operations with 3- and 4-wire modes.............................................................. 18 3.2.3 spi read operations with 4-wire mode.......... 20 3.2.4 spi read operations with 3-wire mode.......... 21 3.2.5 spi timing specifications (4-wire mode)......... 21 3.2.6 spi timing specifications (3-wire mode)......... 23 4 modes of operation...............................................................24 5 functionality.......................................................................... 26 5.1 fifo data buffer......................................................... 27 5.2 rate threshold detection function............................. 28 6 register descriptions............................................................ 30 6.1 0x00: status.............................................................30 6.2 0x01C0x06: out_x_msb, out_x_lsb, out_y_msb, out_y_lsb, out_z_msb, out_z_lsb................................................................ 31 6.3 0x07: dr_status......................................................33 6.4 0x08: f_status.........................................................35 6.5 0x09: f_setup...........................................................35 6.6 0x0a: f_event.......................................................... 36 6.7 0x0b: int_source_flag........................................ 37 6.8 0x0c: who_am_i....................................................... 38 6.9 0x0d: ctrl_reg0..................................................... 38 6.10 0x0e: rt_cfg............................................................ 40 6.11 0x0f: rt_src............................................................ 41 6.12 0x10: rt_ths............................................................. 43 6.13 0x11: rt_count....................................................... 44 6.14 0x12: temp................................................................. 44 6.15 0x13: ctrl_reg1......................................................45 6.16 0x14: ctrl_reg2......................................................47 6.17 0x15:ctrl_reg3.......................................................48 7 printed circuit board layout and device mounting.............. 50 7.1 printed circuit board layout........................................50 7.2 overview of soldering considerations.........................51 7.3 halogen content..........................................................52 8 package information............................................................. 52 8.1 product identification markings....................................52 8.2 tape and reel information.......................................... 52 8.3 package description....................................................53 9 revision history.................................................................... 55 3 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
1 general description 1.1 block diagram scl/sclk sda/mosi/ spi_data sa0/miso spi/i 2 c_b i 2 c/spi interface c2v adc-16 z vibrating mass gain lpf z+ z- aaf charge pump drive z programmable 32 sample fifo buffer configuration and control registers digital i/o nvm, trim logic oscillators, clock generator voltage references and regulators rst_b v ddio gnd v dd drive x/y angular rate demod mux f d x/y vibrating mass x+ y+ x- y- ? x,y,z mux int 2 / pwr_ctrl int 1 digital signal processing self-test temperature sensor spi_cs_b figure 1. block diagram 1.2 pinout 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 4 20 21 24 1 3 1 5 1 6 1 7 18 1 9 22 23 s a0 / vre gd spi_cs_b rsvd_gnd rsvd_gnd gnd2 rst_b int1 scl / sclk rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd i 2 c_b / spi gnd1 gnd4 gnd3 v dd sda / mosi / spi_data miso int2 / pwr_ctrl rsvd_gnd rsvd_gnd v ddio figure 2. device pinout (top view) general description 4 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 1. pin functions pin name function 1 gnd1 ground 2 int2 / pwr_ctrl 1 interrupt output 2 / power state transition control input 3 int1 interrupt output 1 4 rst_b reset input, active low. connect this pin to v ddio if unused. 5 gnd2 ground 6 rsvd_gnd reserved - must be tied to ground 7 rsvd_gnd reserved - must be tied to ground 8 i 2 c_b / spi digital interface selection pin. this pin must be tied high to select spi interface mode, or low to select i 2 c interface mode. 9 rsvd_gnd reserved pinmust be tied to ground 10 rsvd_gnd reserved pinmust be tied to ground 11 scl/sclk i 2 c / spi clock 12 sda / mosi / spi_data i 2 c data / spi 4-wire master out slave in / spi 3-wire data in/out 2 13 sa0/miso i 2 c address bit0 / spi 4-wire master in slave out 14 gnd3 ground 15 v dd supply voltage 16 v regd digital regulator output. connect a 0.1 f capacitor between this pin and ground 17 spi_cs_b spi chip select input, active low. this pin must be held logic high when operating in i 2 c interface mode (i 2 c_b/spi set to ground) to ensure correct operation. 18 v ddio interface supply voltage 19 gnd4 ground 20 rsvd_gnd reserved - must be tied to ground 21 rsvd_gnd reserved - must be tied to ground 22 rsvd_gnd reserved - must be tied to ground 23 rsvd_gnd reserved - must be tied to ground 24 rsvd_gnd reserved - must be tied to ground 1. int2/pwr_ctrl becomes a high-impedance input with weak internal pull-up resistor when ctrlreg3[ extctrlen] = 1; the pull-up resistor is referenced to vddio. 2. mosi becomes a bidirectional data pin when FXAS21002C is operated in 3-wire spi mode with ctrl_reg0[spiw]=1. 1.3 system connections the FXAS21002C offers the choice of interfacing with a host processor through either i 2 c or spi interfaces. figure 3 and figure 4 show the recommended circuit connections for implementing both interface options. general description 5 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
1.3.1 typical application circuiti 2 c mode 1 2 3 4 5 6 7 14 13 15 16 17 18 19 v ddio (1.62 to vdd + 0.3 v) sao 0.1 f 0.1 f gnd1 int 2 / pwr_ctrl int 1 rst_b gnd2 gnd4 v ddio spi_cs_b v regd v dd gnd3 sao/miso sda v ddio 4.7 k? scl v ddio int 2 / pwr_ctrl int 1 rsvd_gnd rsvd_gnd 4.7 k? v dd (1.95 to 3.6 v) 100 nf 8 9 10 11 12 20 21 24 22 23 scl/sclk sda/mosi rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd i2c_b / spi 47 k? 1.0 f (optional) v ddio rst_b note: connect rst_b pin to v ddio if unused in the application. a pull-up resistor may be also used if desired. note: the logic level on sa0 sets the 7-bit i 2 c slave address as follows: sa0 = gnd -> 0x20 sa0 = v ddio -> 0x21 rsvd_gnd rsvd_gnd figure 3. i 2 c mode electrical connections general description 6 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
1.3.2 typical application circuitspi mode 1 2 3 4 5 6 7 8 9 10 11 12 14 20 21 24 13 15 16 17 18 19 22 23 v ddio (1.62 to v dd + 0.3 v) 0.1 f 0.1 f 100 nf note: mosi becomes a bidirectional data pin when fxas21002 is operated in 3-wire spi mode with ctrl_reg0[spiw] = 1. mosi miso sclk host spi chip select scl/sclk sda/mosi rsvd_gnd gnd1 int 2 / pwr_ctrl int 1 rst_b gnd2 gnd4 v ddio spi_cs_b v regd gnd3 v dd sao/miso rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd rsvd_gnd i 2 c_b / spi int 1 v ddio 1.0 f int 2 / pwr_ctrl v dd (1.95 to 3.6 v) (optional) v ddio rst_b note: connect rst_b pin to v ddio if unused in the application. a pull-up resistor may also be used if desired. 47 k? rsvd_gnd rsvd_gnd figure 4. spi mode electrical connections 1.4 sensitive axes orientations and polarities + z + y + x fxas21002 figure 5. reference frame for rotational measurement general description 7 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
2 mechanical and electrical specifications 2.1 absolute maximum ratings absolute maximum ratings are the limits the device can be exposed to without permanently damaging it. absolute maximum ratings are stress ratings only; functional operation at these ratings is not guaranteed. exposure to absolute maximum ratings conditions for extended periods may affect device reliability. this device contains circuitry to protect against damage due to high static voltage or electrical fields. it is advised, however, that normal precautions be taken to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage level (for instance, either gnd or v dd ). table 2. absolute maximum ratings rating symbol min max unit supply voltage v dd C0.3 3.6 v interface supply voltage v ddio C0.3 3.6 v input voltage on any control pin (sa0, scl, sda, rst_b, pwr_ctrl) v in C0.3 v ddio +0.3 v maximum acceleration (all axes, 100 s) g max 5000 g operating temperature t op C40 +85 c storage temperature t stg C40 +125 c table 3. esd and latch-up protection characteristics rating symbol value unit human body model (hbm) v hbm 2000 v machine model (mm) v mm 200 v charge device model (cdm) v cdm 500 v latch-up current at t = 85 c i lu 100 ma caution this device is sensitive to mechanical shock, improper handling can cause permanent damage to the part. mechanical and electrical specifications 8 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
caution this is an esd sensitive device, improper handling can cause permanent damage to the part. 2.2 operating conditions table 4. nominal operating conditions rating symbol min typ max unit supply voltage v dd 1.95 3.6 v interface supply voltage v ddio 1.62 v dd + 0.3 v digital high level input voltage: scl/sclk, sda/mosi/spi_data, sa0/miso, spi/ i 2 c_b, rst_b, int2/pwr_ctrl, spi_cs_b pins vih 0.7 * v ddio v digital low level input voltage: scl/sclk, sda/mosi/spi_data, sa0/miso, spi/ i 2 c_b, rst_b, int2/pwr_ctrl, spi_cs_b pins vil 0.3 * v ddio v operating temperature top C40 +25 +85 c 2.3 mechanical characteristics table 5. mechanical characteristics parameter symbol test conditions min typ max unit adc resolution n 16 bits full-scale range fsr ctrl_reg0[fs] = 00 ctrl_reg0[fs] = 01 ctrl_reg0[fs] = 10 ctrl_reg0[fs] = 11 2000 1000 500 250 dps sensitivity s o ctrl_reg0[fs] = 00 ctrl_reg0[fs] = 01 ctrl_reg0[fs] = 10 ctrl_reg0[fs] = 11 62.5 31.25 15.625 7.8125 mdps/lsb sensitivity temperature coefficient t C40 to +85 c xy: 0.08 %/c z: 0.01 zero-rate offset d o ctrl_reg0[fs] = 00 25 lsb zero-rate offset, post-board mount 1 d o-pbm ctrl_reg0[fs] = 00 50 lsb table continues on the next page... mechanical and electrical specifications 9 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 5. mechanical characteristics (continued) parameter symbol test conditions min typ max unit zero rate bias temperature coefficient d t C40 to +85 c xy: 0.02 dps/c z: 0.01 cross axis sensitivity cas max(s xy , s xz , s yx , s yz , s zx , s zy ) 1.5 % integral nonlinearity (deviation from linear response) inl ctrl_reg0[fs] = 00 0.5 %fsr self-test output change 2 stoc ctrl_reg0[fs] = 00 7000 16000 25000 lsb maximum output data rate odr max 800 hz noise density nd odr = 200 hz, ctrl_reg0[fs] = 00, ctrl_reg0[bw] = 00 0.025 dps/hz test conditions (unless otherwise noted): ? v dd = 2.5 v ? v ddio = 1.8 v ? t = 25 c 1. post board mount offset specifications are based on an eight-layer pcb. 2. the self-test function can be used to verify the correct functioning of the asic measurement chain and gyro drive circuitry. the self-test function will only produce a meaningful result when the device is maintained stationary during the test. the self-test output value will be either positive or negative due to factory trimming, therefore, the absolute value of the self-test result should be used. 2.4 electrical characteristics table 6. electrical characteristics parameter symbol test conditions min typ max unit supply voltage v dd 1.95 2.5 3.6 v interface supply v ddio 1.62 v dd +0.3 v current consumption in active mode idd act active mode 2.7 ma current consumption in ready mode idd rdy ready mode 1.6 ma supply current drain in standby mode idd stby standby mode 2.8 a supply current in standby mode over temperature idd stby-ot C40 t 85 c 7.5 a digital high level input voltage scl/sclk, sda/mosi/ spi_data, sa0/miso, spi/ i 2 c_b, rst_b, int2/ pwr_ctrl, spi_cs_b vih 0.7 * v ddio v table continues on the next page... mechanical and electrical specifications 10 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 6. electrical characteristics (continued) parameter symbol test conditions min typ max unit digital low level input voltage scl/sclk, sda/mosi/ spi_data, sa0/miso, spi/ i 2 c_b, rst_b, int2/ pwr_ctrl, spi_cs_b vil 0.3 * v ddio v high-level output voltage int1, int2/pwr_ctrl, sda/mosi/spi_data, sa0/ miso voh i o = 1 ma 0.9 * v ddio v low-level output voltage int1, int2/pwr_ctrl, sda/ mosi/spi_data, sa0/miso vol i o = 1 ma 0.1 * v ddio v low-level output voltage sda vol sda1 i o = 3 ma, v ddio 2v 0.4 * v ddio v vol sda2 i o = 3 ma, v ddio < 2v 0.2 * v ddio output data rate frequency tolerance odr tol 2.5 % odr output signal bandwidth bw 4 < odr/2 256 hz standby to active mode transition time t stdy-act 1/odr + 60 ms ready to active mode transition time t rdy-act 1/odr + 5 ms test conditions (unless otherwise noted): ? v dd = 2.5 v ? v ddio = 1.8 v ? t = 25c 2.5 temperature sensor characteristics table 7. temperature sensor characteristics characteristic symbol condition(s) min typ max unit full-scale range t fsr C40 +85 c operating temperature t op C40 +25 +85 c sensitivity t sens 1 c/lsb test conditions (unless otherwise noted): ? v dd = 2.5 v ? v ddio = 1.8 v mechanical and electrical specifications 11 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
3 digital interfaces the registers embedded inside the device are accessed through either an i 2 c or an spi serial interface. to enable either interface, the v ddio line must be connected to the interface supply voltage. if v dd is not present and v ddio is present, FXAS21002C is in shutdown mode and communications on the interface are ignored. if v ddio is maintained, v dd can be powered off and the communications pins will be in a high impedance state. this will allow communications to continue on the bus with other devices. table 8. serial interface pin descriptions pin name pin description v ddio digital interface power spi_cs_b spi chip select scl/sclk i 2 c/spi serial clock sda/mosi/spi data i 2 c serial data/spi master serial data out slave serial data in /spi 3-wire data input/output sa0/miso i 2 c least significant bit of the device address/spi master serial data in slave serial data out i 2 c_b/spi digital interface mode selection pin 3.1 i2c interface to use the i 2 c interface, the i 2 c_b/spi (pin 8) pin must be connected to gnd (logic low) and the spi_cs_b (pin 17) must be made logic high (by providing it a voltage equal to v ddio ). FXAS21002C's i 2 c interface is compliant with i 2 c interface specification for standard and fast modes as outlined in the i 2 c-bus specification and user manual - rev 4, published by nxp semiconductors. the 7-bit slave addresses that may be assigned to the device are 0x20 (with sa0 = 0) and 0x21 (with sa0 = 1). when i 2 c_b/spi is held low, the sa0/miso pin is used to define the lsb of this i 2 c address. this part does not implement clock stretching. see table 9 for the i 2 c slave addresses. table 9. i 2 c slave addresses command device address bit[0] (sa0 pin state) slave address bits[6:0] r/w bit slave address byte transmitted by master read 0 0x20 1 0x41 write 0 0x20 0 0x40 read 1 0x21 1 0x43 write 1 0x21 0 0x42 digital interfaces 12 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
the key bus timing constraints are shown in table 10. the i 2 c timing diagram is shown in figure 6. table 10. slave timing values parameter symbol i 2 c standard mode 1, 2 i 2 c fast mode 1, 2 unit min max min max scl clock frequency f scl 0 100 0 400 khz bus free time between stop and start conditions t buf 4.7 1.3 s hold time (repeated) start condition t hd;sta 4.0 0.6 s set-up time for a repeated start condition t su;sta 4.7 0.6 s set-up time for a stop condition t su;sto 4.0 0.6 s sda valid time 2 t vd;dat 3.45 3 0.9 3 s sda valid acknowledge time 4 t vd;ack 3.45 3 0.9 3 s sda setup time t su;dat 250 100 5 ns scl clock low time t low 4.7 1.3 s scl clock high time t high 4.0 0.6 s sda and scl rise time t r 1000 20 300 ns sda and scl fall time 6 t f 300 20*(v ddio /5.5 v) 300 ns capacitive load for each bus line 7 c b 400 400 pf pulse width of spikes on sda and scl that must be suppressed by the internal input filter t sp 0 50 0 50 ns 1. all values refer to vih (min) and vil (max) levels. 2. t vd;dat refers to the time for data signal from scl low to sda output (high or low, depending on which one is worse). 3. the maximum t hd;dat could be 3.45 s and 0.9 s for standard mode and fast mode, but must be less than the maximum of t vd;dat or t vd;ack by a transition time. 4. t vd;ack = time for acknowledgement signal from scl low to sda output (high or low, depending on which one is worse). 5. a fast-mode i 2 c device can be used in a standard-mode i 2 c system, but the requirement t su;dat 250 ns must then be met. also, the acknowledge timing must meet this set-up time. 6. the maximum t f for the sda and scl bus lines is specified at 300 ns. the maximum fall time for the sda output stage t f is specified at 250 ns. this allows series protection resistors to be connected between the sda and the scl pins and the sda/scl bus lines without exceeding the maximum specified t f . 7. c b is the total capacitance of one bus line in pf; the maximum bus capacitance allowable may vary from this value depending on the application operating voltage and frequency. digital interfaces 13 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
70% 30% 70% 30% 70% 30% 70% 30% 70% 30% 70% 30% 1 / f scl t l o w t su:d a t 1 st cloc k cycle t vd:d a t 9 th cloc k t high sd a scl sda scl t su:s t a t hd:st a t sp t hd :d a t t su:s t o t vd:a ck 70% 30% 9 th cloc k t r t r t r s p t set s t b uf t r sr figure 6. i 2 c timing diagram 3.1.1 i2c operation there are two signals associated with the i 2 c bus: the serial clock line (scl) and the serial data line (sda). the sda is a bidirectional line used for sending and receiving the data to and from the interface. external pull-up resistors connected to v ddio are required for sda and scl. when the bus is free, the lines are high. the maximum practical operating frequency for i 2 c in a given system implementation depends on several factors including the pull-up resistor values, and the total bus capacitance (trace + parasitic device capacitances). a transaction on the bus is started through a start condition (st) signal, which is defined as a high-to-low transition on the data line while the scl line is held high. after the st signal has been transmitted by the master, the bus is considered busy. the next byte of data transmitted contains the slave address in the first seven bits, and the eighth bit, the read/write bit, indicates whether the master is receiving data from the slave or transmitting data to the slave. when an address is sent, each device in the system compares the first seven bits after the st condition with its own address. if they match, the device considers itself addressed by the master. the ninth clock pulse, following the slave address byte (and each subsequent byte) is the acknowledge (ack). digital interfaces 14 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
the transmitter must release the sda line during the ack period. the receiver must then pull the data line low so that it remains consistently low during the high period of the acknowledge clock period. the number of bytes per transfer is unlimited. if a receiver can't receive another complete byte of data until it has performed some other function, it can hold the clock line, scl, low to force the transmitter into a wait state. data transfer only continues when the receiver is ready for another byte and releases the data line. this delay action is called clock stretching. not all receiver devices support clock stretching. not all master devices recognize clock stretching. a low-to-high transition on the sda line while scl is high is defined as a stop condition (sp) signal. a write or burst write is always terminated by the master issuing the sp signal. a master should properly terminate a read by not acknowledging a byte at the appropriate time in the protocol. a master may also issue a repeated start signal (sr) during a transfer. 3.1.2 i2c read operations 3.1.2.1 single-byte read the master (or mcu) transmits an st to the FXAS21002C, followed by the slave address, with the r/w bit set to 0 for a write, and the FXAS21002C sends an acknowledgement. then, the mcu transmits the address of the register to read and the FXAS21002C sends an acknowledgement. the mcu transmits an sr, followed by the byte containing the slave address and the r/w bit set to 1 for a read from the previously selected register. the FXAS21002C then acknowledges and transmits the data from the requested register. the master transfers a nack followed by an sp, signaling an end of transmission. 3.1.2.2 multiple-byte read when performing a multiple-byte or burst read, the FXAS21002C increments the register address read pointer after a read command is received. therefore, after following the steps of a single-byte read, multiple bytes of data can be read from sequential registers after each FXAS21002C ack is received. this continues until the master transfers a nack followed by an sp, signaling an end of transmission. digital interfaces 15 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
3.1.3 i2c write operations 3.1.3.1 single-byte write to start a write command, the master transmits an st to the FXAS21002C, followed by the slave address with the r/w bit set to 0 for a write, and the FXAS21002C sends an ack. then, the master transmits the address of the register to write to, and the FXAS21002C sends an ack. then, the master transmits the 8-bit data to write to the designated register and the FXAS21002C sends an ack that it has received the data. since this transmission is complete, the master transmits an sp to end the data transfer. the data sent to the FXAS21002C is now stored in the appropriate register. 3.1.3.2 multiple-byte write the FXAS21002C automatically increments the register address write pointer after a write command is received. therefore, after following the steps of a single-byte write, multiple bytes of data can be written to sequential registers after each FXAS21002C ack is received. digital interfaces 16 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
3.1.3.3 i2c data sequence diagrams st device address[6:0] w sp master slav e mast er slave master slave register address[7:0] legend st: start condition sr: repeated start condition sp: stop condition nack: no acknowledge w: write = 0 ack: acknowledge ack ack ack ack st device address[6:0] w sp register address[7:0] ack ack ack sp data[7:0] ack ack data[7:0] data[7:0] nack st device address[6:0] w register address[7:0] ack ack ack sr device address[6:0] r data[7:0] ack continued sp ack ack nack st device address[6:0] w register address[7:0] ack ack ack sr device address[6:0] r continued ack st device address[6:0] w register address[7:0] ack ack sr device address[6:0] r ack sp nack data[7:0] data[7:0] data[7:0] data[7:0] data[7:0] data[7:0] data[7:0] data[7:0] master slave master slave master slave master slave figure 7. i2c data sequence diagram 3.2 spi interface the spi interface is a classical master/slave serial port. FXAS21002C is always considered to be the slave device and thus never initiates a communication with the host processor. the spi interface of FXAS21002C is compatible with spi interface mode 00, corresponding to cpol = 0 and cpha = 0. for cpol = 0, the idle value of the clock is zero, and the active value of the clock is 1. for cpha = 0, data is captured on the clock's rising edge (low to high transition) and data is propagated on the clocks falling edge (high to low transition). digital interfaces 17 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
3.2.1 general spi operation the spi_cs_b pin is driven low at the start of a transaction, held low for the duration of the transfer, and then driven high again after the transaction is completed. during a transaction, the master toggles the clock (sclk). the sclk polarity is defined as having an idle value that is low, and an active phase that is high (cpol = 0). serial input and output data is captured on the clock's rising edge and propagated on the falling edge (cpha = 0). single byte read and single byte write operations are completed in 16 sclk cycles; multiple byte reads and writes are completed in additional multiples of 8 sclk cycles. the first sclk cycle latches the most significant bit on mosi to select whether the desired operation is a read (r/w = 1) or a write (r/w = 0). the following seven sclk cycles are used to latch the slave register read or write address. note 4-wire spi interface mode is the default out of por or after a hard/soft reset. the 3-wire interface mode may be selected by setting ctrl_reg0[spiw] = 1. 3.2.2 spi write operations with 3- and 4-wire modes a write operation is initiated by transmitting a 0 for the r/w bit. then, the 7-bit register write address, a[6:0], is transmitted in msb first order. the data byte to be written is then transferred during the second 8 sclk cycle period (again, with msb first). figure 8 and figure 9 shows the bus protocol for a single byte register write operation in either 3- or 4-wire spi modes. miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 figure 8. spi single byte write protocol diagram (4-wire mode), r/w = 0 digital interfaces 18 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 high-impedance figure 9. spi single byte write protocol diagram (3-wire mode), r/w = 0 multiple-byte write operations are performed similarly to the single-byte write sequence, but with additional data bytes transferred over every 8 sclk cycle period. the register write address is internally auto-incremented by FXAS21002C so that every eighth clock edge will latch the address for the next register write address. when the desired number of bytes has been written, the rising edge on the spi_cs_b pin terminates the transaction. figure 10 and figure 11 show the bus protocol for multiple byte register write operation in either 3- or 4-wire spi modes. miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 17 18 19 20 21 22 23 24 d7 d6 d5 d4 d3 d2 d1 d0 figure 10. spi multiple byte write protocol diagram (4-wire mode), r/w = 0 miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 17 18 19 20 21 22 23 24 d7 d6 d5 d4 d3 d2 d1 d0 high-impedance figure 11. spi multiple byte write protocol diagram (3-wire mode), r/w = 0 digital interfaces 19 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
3.2.3 spi read operations with 4-wire mode note this description pertains only to the default spi 4-wire interface mode (with ctrl_reg0[spiw] = 0). this mode is the default out of por, or after a hard/soft reset. a register read operation is initiated by transmitting a 1 for the r/w bit. then, the 7-bit register read address, a[6:0] is encoded in the first byte. the data is read from the miso pin (msb first). figure 12 shows the bus protocol for a single byte read operation. miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 figure 12. spi single byte read protocol diagram (4-wire mode), r/w = 1 multiple-byte read operations are performed similarly to single-byte reads; additional bytes are read in multiples of eight sclk cycles. the register read address is auto- incremented by FXAS21002C so that every eighth clock edge will latch the address of the next register read address. when the desired number of bytes has been read, the rising edge on the spi_cs_b terminates the transaction. miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 17 18 19 20 21 22 23 24 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 figure 13. spi multiple byte read protocol diagram (4-wire mode), r/w = 1 digital interfaces 20 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
3.2.4 spi read operations with 3-wire mode note this description pertains only to the 3-wire spi interface mode (with ctrl_reg0[spiw] = 1). this interface mode is not the default and must be selected after a por, or hard/ soft reset. FXAS21002C can be configured to operate in 3-wire spi mode. in this mode the miso pin is left unconnected or high-z, and the mosi pin becomes a bi-directional input/output pin (spi_data). 3-wire mode is selected by setting the spiw bit in ctrl_reg0. read operations in 3-wire mode are the same as in 4-wire mode except that at the end of address cycle, the mosi (spi_data) pin automatically switches from an input to an output. miso spi_d a ta sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 high-impedance figure 14. spi single byte read protocol diagram (3-wire mode) miso mosi sclk spi_cs_b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 r/w a6 a5 a4 a3 a2 a1 a0 17 18 19 20 21 22 23 24 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 high-impedance figure 15. spi multiple byte read protocol diagram (3-wire mode) digital interfaces 21 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
3.2.5 spi timing specifications (4-wire mode) table 11 and figure 16 specify and illustrate the minimum and maximum timing parameter values for correct spi interface functionality when FXAS21002C is operated in 4-wire spi mode. the timing delays given in table 11 are taken at 70% of the rising edge and 30% of the falling edge. FXAS21002C only supports spi mode 00, corresponding to cpol = 0, and cpha = 0. in this mode, the active state of the clock is high and the idle state is low. data is latched on the rising edge of the clock and propagated on the falling edge. please note that the timing parameters shown in table 11 are based on simulations performed across process, voltage, and temperature with a total bus capacitance of 80 pf and a 10 k? pull-up resistor to vddio on each spi interface pin (scl/sclk, sda/mosi/spi_data, sa0/miso, and spi_cs_b). note in 4-wire spi mode the miso pin is always placed in a high impedance state when cs_b is not asserted (logic high level). table 11. slave timing values label description specifications unit min. max. fsclk sclk frequency 0 2 mhz tsclk sclk period 500 ns tsclkh sclk high time 210 ns tsclkl sclk low time 210 ns tsz setup time for miso signal (transition out of high-z state) 130 thz hold time for miso signal (transition back to high-z state) 110 tscs setup time for spi_cs_b signal 250 ns thcs hold time for spi_cs_b signal 200 ns twcs inactive time for spi_cs_b signal 110 ns tset data setup time for mosi signal 20 ns thold data hold time for mosi signal 200 ns tddly data setup time for miso signal 210 ns digital interfaces 22 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
twcs thcs tsclkl tsclkh tsclk tscs tset thold tddly spi_cs_b sclk mosi miso figure 16. spi timing diagram (4-wire mode) 3.2.6 spi timing specifications (3-wire mode) table 12 and figure 17 specify and illustrate the minimum and maximum timing parameter values for correct spi interface functionality when FXAS21002C is operated in 3-wire spi mode. the timing delays given in table 12 are taken at 70% of the rising edge and 30% of the falling edge. FXAS21002C only supports spi mode 00, corresponding to cpol = 0, and cpha = 0. in this mode, the active state of the clock is high and the idle state is low. data is latched on the rising edge of the clock and propagated on the falling edge. please note that the timing parameters shown in table 12 are based on simulations performed across process, voltage, and temperature with a total bus capacitance of 80pf and a 10 k? pull-up resistor to vddio on each spi interface pin (scl/sclk, sda/mosi/spi_data, sa0/miso, and spi_cs_b). note when FXAS21002C is operated in 3-wire spi mode - by setting ctrl_reg0[spiw] = 1 - the sa0/miso pin is always placed in a high impedance (high-z) state. table 12. slave timing values label description specifications unit min. max. fsclk sclk frequency 0 1.4 mhz tsclk sclk period 714 ns tsclkh sclk high time 300 ns table continues on the next page... digital interfaces 23 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 12. slave timing values (continued) label description specifications unit min. max. tsclkl sclk low time 300 ns thz hold time for miso signal (transition back to high-z state) 200 tscs setup time for spi_cs_b signal 250 ns thcs hold time for spi_cs_b signal 200 ns twcs inactive time for spi_cs_b signal 200 ns tset data setup time for mosi signal 20 ns thold data hold time for mosi signal 200 ns tddly data setup time for miso signal 280 ns twcs thcs tsclkl tsclkh tsclk tscs tset thold tddly spi_cs_b sclk mosi miso high-impedance figure 17. spi timing diagram (3-wire mode) 4 modes of operation the device may be placed into one of three functional modes: ? standby: some digital blocks are enabled; i 2 c/spi communication is possible. this mode is the minimum power consumption state for the device and is the default mode entered on por or hard/soft reset. a transition from standby mode to active mode takes 1/odr + 60 ms, typical. modes of operation 24 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
? active: all blocks are enabled (digital and analog); the device is actively measuring the angular rate at the odr specified in 0x13: ctrl_reg1. this is the maximum power consumption state of the device. ? ready: this mode is entered by setting ctrl_reg1[ready] = 1. in this mode, the drive circuits are running but no measurements are being made. this mode offers the user the ability to significantly reduce the current draw of the device while providing a fast transition into active mode within 1/odr + 5 ms. note when ctrl_reg3[extctrlen] = 0, the active mode is entered/exited using the register interface (ctrl_reg1[active] bit). when ctrl_reg3[extctrlen] = 1, the active mode is entered/exited via the logic state on the pwr_ctrl input pin (pin 2). the functional mode is selected using ctrl_reg1. after a por (power on reset), a boot sequence is performed by the device and the registers are loaded with their preset values. after the boot sequence completes, the default operating mode of FXAS21002C is standby mode. por (v dd > 1.95 v) ctrl_reg1[ active] = 1 functional modes start-up sequence boot_end = 1 ready standby active boot ctrl_reg1[a ctive ] = 0 and ctrl_reg1[ ready] = 0 ctrl_reg1[a ctive ] = 0 and ctrl_reg1[ ready] = 1 ctrl_reg1[a ctive ] = 1 ctrl_reg1[a ctive ] = 0 and ctrl_reg1[ ready] = 0 ctrl_reg1[a ctive ] =0 and ctrl_reg1[ ready] = 1 figure 18. functional mode transition diagram with ctrl_reg3[extctrlen] = 0 modes of operation 25 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
por (v dd > 1.95 v) pwr_ctrl = high functional modes start-up sequence boot_end = 1 standby boot pwr_ctrl = lo w and ctrl_reg1[ ready ] = 0 pwr_ctrl = lo w and ctrl_reg1[ ready ] = 1 ready active pwr_ctrl = high pwr_ctrl = lo w and ctrl_reg1[ ready ] = 1 pwr_ctrl = lo w and ctrl_reg1[ ready ] = 0 figure 19. functional mode transition diagram with ctrl_reg3[extctrlen] = 1 5 functionality the FXAS21002C is a low-power, digital-output, 3-axis gyroscope with both i 2 c and spi interfaces. the functionality includes the following: ? 16-bit output data presented in 2's complement format ? configurable full scale ranges of 250, 500, 1000 and 2000 dps; optional fsrs of 500, 1000, 2000 and 4000 by setting ctrl_reg3[fs_double ] = 1 ? configurable output data rates from 12.5 to 800 hz ? internal low-pass filter with programmable cut-off frequency to limit the output data bandwidth ? angular rate sensitivity of 0.0625/s in 2000/s fsr mode ? internal high-pass filter with programmable cut-off frequency ? embedded rate threshold detection function with programmable debounce time ? 32-sample fifo configurable in circular or stop data collection modes ? 2 external interrupt pins that are configurable to signal data-ready, rate threshold or fifo events ? self-test function for indication of device health functionality 26 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
data for each axis must be read from the respective data registers, two bytes at a time; for example, one byte for most significant byte and one byte for least significant. combining these two bytes results in a 16-bit 2's complement signed integer with the sign bit in bit location #15 and the least significant bit in location 0. see the tables below: bit 15 14 13 12 11 10 9 8 data bit d15 d14 d13 d12 d11 d10 d9 d8 sign bit bit 7 6 5 4 3 2 1 0 data bit d7 d6 d3 d4 d3 d2 d1 d0 lsb the conversion from counts to units of dps is done by first adjusting the byte order of the output data (if needed). on a big-endian processor, no byte order changes are needed. on a little-endian processor, the byte order (msb, lsb) must be swapped. following this step, the 16-bit value is multiplied by the appropriate sensitivity value for the selected full scale range. see table 35 for nominal sensitivity values. 5.1 fifo data buffer FXAS21002C contains a fifo data buffer that is 192 bytes (32 x/y/z samples) and is useful for reducing the frequency of transactions on the i 2 c/spi bus. the fifo can also provide system level power savings by allowing the host processor/mcu to go into a sleep/low-power mode while the FXAS21002C collects up to 32 samples of 3- axis angular rate data. the fifo is configured to operate in circular buffer mode or stop mode, depending on the settings made in the 0x09: f_setup register. the circular buffer mode allows the fifo to be filled with a new sample, replacing the oldest sample in the buffer. the most recent 32 samples will be stored in the buffer. this is useful in situations where the processor is waiting for a specific interrupt to indicate that the data must be flushed to analyze the event. the FXAS21002C fifo buffer has a configurable watermark, allowing an interrupt to be signaled to the processor after a configurable number of samples enter the buffer (1 to 32). functionality 27 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
5.2 rate threshold detection function the embedded rate detection function can be used to detect an angular rate event that exceeds a programmed threshold on any one of the enabled axes for longer than the programmed debounce time, triggering an interrupt on one of the int1/int2 pins (if enabled). sign |x| d at a rt_ths dbcntm rt_count ele > cnt > rt rt_pol latch latch ele output data rate (hz) odr and counter clock period (ms) event debounce time range (s) 800 1.25 0 C 0.32 400 2.5 0 C 0.64 200 5 0 C 1.28 100 10 0 C 2.56 50 20 0 C 5.12 25 40 0 C 10.24 12.5 80 0 C 20.48 if the debounce counter reaches the value stored in rt_count , the rate threshold event is detected. the interrupt flag can be either latched or updated in real-time depending on the state of the ele bit. the examples illustrated in figure 20 through figure 23 show the use of the rate threshold function with the various settings for the dbcntm and ele control bits: functionality 28 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
data counter control c ount er value rt rt_count r t_ths t figure 20. ele = 0 and dbcntm = 0 data counter control c ount er value rt rt_count r t_ths t figure 21. ele = 0 and dbcntm = 1 data counter control c ount er value resetting the flag rt_count r t_ths t rt figure 22. ele = 1 and dbcntm = 0 data counter control c ount er value resetting the flag rt_count r t_ths t rt figure 23. ele = 1 and dbcntm = 1 functionality 29 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
6 register descriptions table 13. register address map name type register address auto-increment address default value comment status r 0x00 0x01 0x00 alias for dr_status or f_status out_x_msb r 0x01 0x02 0x00 1 [7:0] are 8 msbs of 16 bit x-axis data sample out_x_lsb r 0x02 0x03 0x00 1 [7:0] are 8 msbs of 16 bit x-axis data sample out_y _msb r 0x03 0x04 0x00 1 [7:0] are 8 msbs of 16 bit y-axis data sample out_y_lsb r 0x04 0x05 0x00 1 [7:0] are 8 msbs of 16 bit y-axis data sample out_z_msb r 0x05 0x06 0x00 1 [7:0] are 8 msbs of 16 bit z-axis data sample out_z_lsb r 0x06 0x00/0x01 0x00 1 [7:0] are 8 msbs of 16 bit z-axis data sample; auto-increment address depends on the setting made in ctrl_reg3[wraptoone] (defaults to 0x00) dr_status r 0x07 0x08 0x00 data-ready status information f_status r 0x08 0x09 0x00 fifo status f_setup r/w 0x09 0x0a 0x00 fifo setup f_event r 0x0a 0x0b 0x00 fifo event int_src_flag r 0x0b 0x0c 0x00 interrupt event source status flags who_am_i r 0x0c 0x0d 0xd7 device id ctrl_reg0 r/w 0x0d 0x0e 0x00 control register 0: full-scale range selection, high-pass filter setting, spi mode selection rt_cfg r/w 0x0e 0x0f 0x00 rate threshold function configuration rt_src r 0x0f 0x10 0x00 rate threshold event flags status register rt_ths r/w 0x10 0x11 0x00 rate threshold function threshold register rt_count r/w 0x11 0x12 0x01 rate threshold function debounce counter temp r 0x12 0x13 0x00 device temperature in c ctrl_reg1 r/w 0x13 0x14 0x00 control register 1: operating mode, odr selection, self-test and soft reset ctrl_reg2 r/w 0x14 0x15 0x00 control register 2: interrupt configuration settings ctrl_reg3 r/w 0x15 0x00 0x00 control register 3: auto-increment address configuration, external power control, fsr expansion reserved 0x16 C 0xff address + 1 factory reserved register space 1. as shown on por. on hard/soft reset, the default value cannot be determined. register descriptions 30 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
6.1 0x00: status the status register content depends on the fifo mode setting. it is a copy of either 0x07: dr_status or 0x08: f_status. this allows for easy reading of the relevant status register before reading the current sample output data, or the first sample stored in the fifo. 6.2 0x01C0x06: out_x_msb, out_x_lsb, out_y_msb, out_y_lsb, out_z_msb, out_z_lsb the x-axis, y-axis, and z-axis output rate data are represented in 16-bit, 2's complement format. the output data registers are arranged in a contiguous big endian format, with the msb of each axiss data located at the lower register address. the output data registers are either updated at the selected output data rate (with f_setup[f_mode] equal to 0b00 ), or alternately, point to the head of the fifo buffer (with f_setup[f_mode] greater than 0b00 ). when reading a data sample with f_mode equal to 0b00, the host must always start by reading the msb of each axis first to ensure that the corresponding lsb register is also updated with the current sample data. when f_mode is greater than 0b00, the out_x_msb register must be read out first in order for the other five output data registers (out_x_lsb through out_z_lsb) to be updated with sample data stored at the head of the fifo. the fifo head pointer is only incremented to point to the next stored sample when the host reads the out_z_msb register. note to avoid the loss of data, the user must burst-read all six bytes of sample data (three axes) in a single i 2 c or spi transaction. table 14. 0x01: out_x_msb bit 7 6 5 4 3 2 1 0 read xd[15:8] write reset 1 0 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. register descriptions 31 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 15. 0x02: out_x_lsb bit 7 6 5 4 3 2 1 0 read xd[7:0] write reset 1 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. table 16. 0x03: out_y_msb bit 7 6 5 4 3 2 1 0 read yd[15:8] write reset 1 0 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. table 17. 0x04: out_y_lsb bit 7 6 5 4 3 2 1 0 read yd[7:0] write reset 1 0 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. table 18. 0x05: out_z_msb bit 7 6 5 4 3 2 1 0 read zd[15:8] write reset 1 0 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. table 19. 0x06: out_z_lsb bit 7 6 5 4 3 2 1 0 read zd[7:0] write reset 1 0 0 0 0 0 0 0 0 1. as shown on por. on hard/soft reset, the default value cannot be determined. register descriptions 32 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
note after this register is read, the next read register by the auto- increment process is status at 0x00, when ctrl_reg3[wraptoone] = 0, or out_x_msb when ctrl_reg3[wraptoone] = 1. data output lsb registers only contain valid data after a read of the corresponding axis msb data register. when f_setup[f_mode] > 0b00, a data read operation must start by reading the out_x_msb register in order for the contents of the other output data registers to be updated for the currently indexed buffered sample. with f_setup[f_mode] > 0b00, the out_z_msb register must be read in order to advance the internal buffer read pointer to index the next sample stored in the fifo. 6.3 0x07: dr_status the dr_status register provides the sample data acquisition status and reflects the real-time updates to the out_x, out_y, and out_z registers. the content of this register is reset upon a transition from standby to active or from ready to active modes. table 20. dr_status register bit 7 6 5 4 3 2 1 0 read zyxow zow yow xow zyxdr zdr ydr xdr write reset 0 0 0 0 0 0 0 0 table 21. dr_status field descriptions field description 7 zyxow x-, y-, z-axis data overwrite ? asserted whenever new x-, y-, and z-axis data is acquired before completing the retrieval of the previous set. ? cleared after the high-bytes of the data of all channels (out_x_msb, out_y_msb, out_z_msb) are read. 0: no data overwrite has occurred 1: x, y, and z data overwrite occurred before the previous data was read table continues on the next page... register descriptions 33 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 21. dr_status field descriptions (continued) field description 6 zow z-axis data overwrite ? asserted whenever a new z-axis acquisition is completed before the retrieval of the previous data. when this occurs, the previous data is overwritten. ? cleared anytime the out_z_msb (and respectively out_y_msb, out_x_msb) register is read. 0: no data overwrite has occurred 1: z-axis data overwrite occurred before the previous data was read 5 yow y-axis data overwrite ? asserted whenever a new y-axis acquisition is completed before the retrieval of the previous data. when this occurs, the previous data is overwritten. ? cleared anytime the out_z_msb (and respectively out_y_msb, out_x_msb) register is read. 0: no data overwrite has occurred 1: y-axis data overwrite occurred before the previous data was read 4 xow x-axis data overwrite ? asserted whenever a new x-axis acquisition is completed before the retrieval of the previous data. when this occurs, the previous data is overwritten. ? cleared anytime the out_z_msb (and respectively out_y_msb, out_x_msb) register is read. 0: no data overwrite has occurred 1: x-axis data overwrite occurred before the previous data was read 3 zyxdr x-, y-, and z-axis data available ? signals that a new acquisition for any of the channels is available. ? cleared when the high-bytes of the data of all channels (out_x_msb, out_y_msb, out_z_msb) are read. 0: no new data is ready 1: new data is ready 2 zdr z-axis new data available ? asserted whenever a new z-axis data acquisition is completed. ? cleared anytime the out_z_msb register is read. 0: no new z-axis data is ready 1: new z-axis data is ready 1 ydr y-axis new data available ? asserted whenever a new y-axis data acquisition is completed. ? cleared anytime the out_y_msb register is read. 0: no new y-axis data is ready 1: new y-axis data is ready 0 xdr x-axis new data available ? asserted whenever a new x-axis data acquisition is completed. ? cleared anytime the out_x_msb register is read. 0: no new x-axis data is ready 1: new x-axis data is ready register descriptions 34 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
6.4 0x08: f_status when the fifo is enabled, the f_status register indicates the current status of the fifo. also, the status register (address 0x00) contains the same content as f_status to facilitate the emptying of the fifo by the host processor. the content of this register is reset upon a transition from standby to active or from ready to active modes. table 22. f_status register bit 7 6 5 4 3 2 1 0 read f_ovf f_wmkf f_cnt[5:0] write reset 0 0 0 0 0 0 0 0 table 23. f_status field descriptions field description 7 f_ovf fifo overflow flag ? a fifo overflow event, such as when f_cnt = 32 and a new sample arrives, asserts the f_ovf flag. ? cleared when the fifo sample count goes below 32. 0: no overflow detected 1: overflow detected 6 f_wmkf fifo watermark flag ? a fifo sample count greater than or equal to the sample count watermark (determined by the f_wmrk field in register 0x09: f_setup) asserts the f_wmkf event flag. ? cleared when fifo sample count goes below the sample count watermark (set by the value of f_setup[f_wmrk] field). 0: no watermark event detected 1: watermark event detected 5:0 f_cnt fifo sample counter ? indicates the number of samples currently stored in the fifo. ? a count value of 0b000000 indicates that the fifo is empty. 6.5 0x09: f_setup the f_setup register is used to configure the fifo. the fifo update rate is set by the selected system odr (dr bits in 0x13: ctrl_reg1). the contents should be modified only when the device is in standby mode. register descriptions 35 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 24. f_setup register bit 7 6 5 4 3 2 1 0 read f_mode[1:0] f_wmrk[5:0] write reset 0 0 0 0 0 0 0 0 table 25. f_setup field descriptions field description 7:6 f_mode fifo operating mode selection: 00: fifo is disabled 01: circular buffer mode 1x: stop mode note: ? used to select the fifo operating mode. ? in the circular buffer mode, the oldest sample is discarded and replaced by the newest sample when the buffer is full with f_status[f_cnt] = 32. ? in the stop mode, the fifo will stop accepting new samples when the buffer is full with f_status[f_cnt] = 32. ? the fifo operating mode cannot be switched between circular and stop modes while the fifo is enabled. ? to change the fifo operating mode, the fifo function must first be disabled by setting f_mode[1:0] = 00. ? the fifo is cleared whenever the fifo is disabled. 5:0 f_wmrk fifo sample count watermark setting ? used to set the watermark level. ? to suppress fifo watermark event flag generation, f_wmrk[5:0] can be set to 0x00. ? disabling the fifo clears f_wmkf ? a fifo sample count exceeding the watermark level does not stop the fifo from accepting new data. default value is 0b000000. 6.6 0x0a: f_event the f_event register is used to monitor the fifo event status. the content of this register is reset upon a transition from standby to active or from ready to active modes. table 26. f_event register bit 7 6 5 4 3 2 1 0 read 0 0 f_event fe_time[4:0] write reset 0 0 0 0 0 0 0 0 register descriptions 36 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 27. f_event field descriptions field description 5 f_event fifo event ? indicates if either f_ovf or f_wmkf flags are set (logical or). ? the f_status register must be read to determine which event(s) occurred. ? to clear this flag, both f_ovf and f_wmkf flags must be cleared. see f_status for details. 0: fifo event not detected 1: fifo event was detected 4:0 fe_time number of odr periods elapsed since f_event was set ? indicates the number of samples acquired since a fifo event flag (overflow or watermark) was asserted. ? reset when f_ovf and f_wmkf fall. ? to clear this field, the f_event flag must be cleared. 6.7 0x0b: int_source_flag the int_source_flag register provides the event-flag status for the interrupt generating functions within the device. reading the int_src_flag register does not reset any event-flag source bits; they are reset by reading the appropriate event source register. table 28. int_src register bit 7 6 5 4 3 2 1 0 read 0 0 0 0 bootend src_fifo src_rt src_drdy write reset 0 0 0 0 0 0 0 0 table 29. int_src_flag field descriptions field description 3 bootend boot sequence complete event flag ? asserted as soon as the device boot sequence has completed and remains at '1' thereafter. 1: boot sequence is complete 0: when one of the following occurs: ? a hard or soft reset event is triggered ? a por event occurs table continues on the next page... register descriptions 37 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 29. int_src_flag field descriptions (continued) field description 2 src_fifo fifo event source flag ? indicates that the fifo event flags triggered the interrupt 1: when the fifo event flag f_event[f_event] is set (f_ovf or f_wmkf are set), provided the fifo interrupt is enabled (ctrl_reg2[int_en_fifo] = 1). 0: cleared when f_event flag gets cleared (whenever both f_ovf and f_wmkf get cleared). 1 src_rt rate threshold event source flag ? indicates that the rate threshold event flag(s) triggered the interrupt 1: when the event active flag rt_src[ea] is set, provided the rate threshold interrupt is enabled (ctrl_reg2[int_en_rt] = 1). 0: cleared when the event active flag rt_src[ea] is cleared. 0 src_drdy data-ready event source flag ? indicates that a data-ready event triggers the interrupt 1: when any of the data-ready flags from dr_status are set, provided the data ready interrupt is enabled (ctrl_reg2[int_en_drdy] = 1). 0: cleared by reading the msbs of the x, y, and z axes sample data. 6.8 0x0c: who_am_i the who_am_i register contains the device identifier which is factory programmed to 0xd7. table 30. who_am_i bit 7 6 5 4 3 2 1 0 read who_am_i[7:0] write reset 1 1 0 1 0 1 1 1 6.9 0x0d: ctrl_reg0 ctrl_reg0 is used for general control and configuration of the device. the bit fields in ctrl_reg0 should be changed only in standby or ready modes. accuracy of the output data is not guaranteed if these bits are changed when the device is in active mode. register descriptions 38 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 31. ctrl_reg0 bit 7 6 5 4 3 2 1 0 read bw[1:0] spiw sel[1:0] hpf_en fs[1:0] write reset 0 0 0 0 0 0 0 0 table 32. ctrl_reg0 field descriptions field description 7:6 bw bandwidth ? selects the cut-off frequency of the digital low-pass filter, limiting the bandwidth of the digital output data as shown in table 33. 5 spiw spi interface mode selection 0: spi 4-wire mode (default) 1: spi 3-wire mode (mosi pin is used for spi input and output signals) 4:3 sel high-pass filter cutoff frequency selection ? details of the high-pass filter settings are shown in table 34. 2 hpf_en high-pass filter enable ? the high-pass filter is initialized on operating mode and odr change. ? when enabled, the hpf is applied to the angular rate data supplied to the output registers/fifo and the embedded rate threshold function. 0: high-pass filter disabled (default) 1: high-pass filter enabled 1:0 fs full-scale range selection ? see table 35 table 33. FXAS21002C lpf cutoff frequency bw odr = 800 hz odr = 400 hz odr = 200 hz odr = 100 hz odr = 50 hz odr = 25 hz odr = 12.5 hz 0b00 256 128 64 32 16 8 4 0b01 128 64 32 16 8 4 0b1x 64 32 16 8 4 table 34. high-pass filter cutoff frequency selection sel1 sel0 cutoff frequency in hz versus odr 800 hz 400 hz 200 hz 100 hz 50 hz 25 hz 12.5 hz 0 0 15 7.5 3.75 1.875 0.937 0.468 0.234 0 1 7.7 3.85 1.925 0.963 0.481 0.241 0.120 1 0 3.9 1.95 0.975 0.488 0.244 0.122 0.061 1 1 1.98 0.99 0.495 0.248 0.124 0.062 0.031 register descriptions 39 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
hpf_en enables the high pass filter. note that high-pass filter is initialized on mode change, odr change, and assertion of the zero rate register bit. when enabled, the high-pass filtered data is input to both the output data registers/fifo and the rate threshold function. fs[1:0] selects the full scale range of the device as shown in table 35. table 35. selectable full scale ranges fs1 fs0 range (dps) nominal sensitivity (mdps/lsb) 0 0 2000 62.5 0 1 1000 31.25 1 0 500 15.625 1 1 250 7.8125 note setting the ctrl_reg3[fs_double] increases the dynamic range for each ctrl_reg0[fs] selection by a factor of two, from 250/500/1000/2000/s to 500/1000/2000/4000/s. 6.10 0x0e: rt_cfg the rt_cfg register is used to enable the rate threshold interrupt generation. the internal state of the rate threshold function is reset when a transition from standby to active or ready to active modes occurs. the contents should only be modified when the device is in standby mode. table 36. rt_ cfg register bit 7 6 5 4 3 2 1 0 read 0 0 0 0 ele ztefe ytefe xtefe write reset 0 0 0 0 0 0 0 0 register descriptions 40 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 37. rt_cfg field descriptions field description 3 ele event latch enable ? see functionality for more details. 0: event flag latch disabled 1: event flag latch enabled 2 ztefe event flag enable on z-axis rate ? enable bits for rate threshold event detection on the z axis 0: z event detection disabled 1: z event detection enabled 1 ytefe event flag enable on y-axis rate ? enable bits for rate threshold event detection on the y axis 0: y event detection disabled 1: y event detection enabled 0 xtefe event flag enable on x-axis rate ? enable bits for rate threshold event detection on the x axis 0: x event detection disabled 1: x event detection enabled 6.11 0x0f: rt_src this register indicates the source of the rate threshold event. the content of rt_src is reset upon a transition from standby to active or from ready to active modes. table 38. rt_ src register bit 7 6 5 4 3 2 1 0 read 0 ea zrt z_rt_pol yrt y_rt_pol xrt x_rt_pol write reset 0 0 0 0 0 0 0 0 register descriptions 41 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 39. rt_src field descriptions field description 6 ea event active flag ? ea indicates that a rate threshold event has been detected on at least one of the axes (or condition). this bit is cleared after a read of this register only if it has been latched (ele =1). 0: no event flags have been asserted 1: one or more event flags have been asserted (xrt, yrt or zrt) 5 zrt z rate event ? indicates that a rate threshold event (as defined in functionality) has been detected on the z-axis (only if rt_cfg[ztefe] is 1). ? flag is asserted a few samples (rt_count) after the absolute value of the z output rate data goes above the rt_ths value. ? cleared a few samples (rt_count) after the absolute value of z rate output goes below the rt_ths value. also cleared when the register is read, if it has been latched (ele = 1). 0: no rate threshold event detected on z axis 1: rate threshold event detected on z axis 4 z_rt_pol polarity of z event ? indicates the rate polarity on the z-axis (if rt_cfg[ztefe] =1). if rt_cfg[ztefe] =1, this bit indicates the polarity of the z data irrespective of the rate threshold event detected on z-axis. ? cleared when read if it has been latched (ele =1) 0: z rate event was positive 1: z rate event was negative 3 yrt y rate event ? indicates that a rate threshold event (as defined in functionality) has been detected on the y-axis (only if rt_cfg[ytefe] =1). ? flag is asserted few samples(rt_count) after the absolute value of the y output rate data goes above the rt_ths value. ? cleared a few samples (rt_count) after the absolute value of y rate output goes below the rt_ths value. also cleared when the register is read if it has been latched (ele = 1). 0: no rate threshold event detected on y axis 1: rate threshold event detected on y axis 2 y_rt_pol polarity of y event ? indicates the rate polarity on the y-axis (if rt_cfg[ytefe] =1). if rt_cfg[ytefe] =1, this bit indicates the polarity of the y data irrespective of the rate threshold event detected on y-axis. ? cleared when read if it has been latched (ele =1) 0: y rate event was positive 1: y rate event was negative table continues on the next page... register descriptions 42 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 39. rt_src field descriptions (continued) field description 1 xrt x rate event ? indicates that a rate threshold event (as defined in functionality) has been detected on the x-axis (only if rt_cfg[xtefe] =1). ? flag is asserted few samples (rt_count) after the absolute value of the x output rate data goes above the rt_ths value. ? cleared a few samples (rt_count) after the absolute value of x rate output goes below the rt_ths value. also cleared when the register is read if it has been latched (ele = 1). 0: no rate threshold event detected on x axis 1: rate threshold event detected on x axis. 0 x_rt_pol polarity of x event ? indicates the rate polarity on the x axis (if rt_cfg[xtefe] =1). if rt_cfg[xtefe] =1, this bit indicates the polarity of the x-data irrespective of the rate threshold event detected on x-axis. ? cleared when read if it has been latched (ele =1) 0: x rate event was positive 1: x rate event was negative 6.12 0x10: rt_ths the rt_ths register sets the threshold limit for the detection of the rate and the debounce counter mode. see functionality for more details. table 40. rt_ths register bit 7 6 5 4 3 2 1 0 read dbcntm ths[6:0] write reset 0 0 0 0 0 0 0 0 table 41. rt_ths field descriptions field description 7 dbcntm debounce counter mode selection ? the contents should only be modified when the device is in standby mode 1: clear counter when angular rate is below the threshold value 0: decrement counter on every odr cycle that the angular rate is below the threshold value table continues on the next page... register descriptions 43 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 41. rt_ths field descriptions (continued) field description 6:0 ths unsigned 7-bit rate threshold value ? the contents should only be modified when the device is in standby mode ? the internal state of the rate threshold function is reset when a transition from standby to active or ready to active modes occurs. ? the rate threshold in dps is given by the following formula: rate threshold (dps) = (ths+1) * 256 * sensitivity (dps/lsb) rate threshold (lsb) = (ths+1) * 256 note the sensitivity (dps/lsb) varies with the fsr setting: ctrl_reg0[fs] and also with the fs_double setting: ctrl_reg3[fs_double]. see table 54 for more sensitivity details on enabling fs_double. 6.13 0x11: rt_count rt_count sets the number of debounce counts. see functionality for more details. table 42. rt_count register bit 7 6 5 4 3 2 1 0 read rt_cnt[7:0] write reset 0 0 0 0 0 0 0 1 table 43. rt_count field descriptions field description 7:0 rt_cnt debounce counter value ? the contents should only be modified when the device is in standby mode ? the internal state of the rate threshold function debounce counter is reset when a transition from standby to active or ready to active modes occurs ? stores the number of counts with the angular rate above the threshold needed before asserting the rate threshold event flag ? the counter period is the same as the selected odr period, allowing for a debounce time to be calculated. for example, an rt_count value of 10 (decimal) and an odr of 100 hz would result in a debounce time of 100 ms. register descriptions 44 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
6.14 0x12: temp the temp register contains an 8-bit 2's complement temperature value with a range of C128 c to +127 c and a scaling of 1 c/lsb. the temperature data is only compensated (factory trim values applied) when the device is operating in the active mode and actively measuring the angular rate. table 44. temp register bit 7 6 5 4 3 2 1 0 read temp[7:0] write reset 0 0 0 0 0 0 0 0 6.15 0x13: ctrl_reg1 the ctrl_reg1 register is used to configure the device odr, set the operating mode, soft-reset the device, and exercise the self-test function. note control bits in ctrl_reg1 should be changed only in standby or ready mode. accuracy of the output data is not guaranteed if these bits are changed while the device is in active mode. table 45. ctrl_reg1 register bit 7 6 5 4 3 2 1 0 read rst st dr[2:0] active ready write reset 0 0 0 0 0 0 0 0 table 46. ctrl_reg1 field descriptions field description 6 rst software reset: ? used to trigger a reset of the device. ? on reset, all registers except 0x01 through 0x06 revert to their default values. register addresses 0x01 through 0x06 contain values that cannot be determined. ? this bit is self cleared after assertion. 0: device reset not triggered/completed 1: device reset triggered table continues on the next page... register descriptions 45 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 46. ctrl_reg1 field descriptions (continued) field description 5 st self-test enable ? when st is set, a data output change will occur even if no angular rate is applied. this allows the host application to check the functionality of the sensor and the entire measurement signal chain. the expected self-test delta value is summarized in table 4 0: self-test disabled 1: self-test enabled 4:2 dr output data rate selection ? selects the output data rate as per table 47 1 active standby/active mode selection, see table 48 0 ready standby/ready mode selection, see table 48 note on issuing a software reset command over an i 2 c interface, the device immediately resets and does not send any acknowledgment (ack) of the written byte to the master. table 47. digital output data bandwidth settings decimal number ctrl_reg1[dr] odr (hz) 0 000 800 1 001 400 2 010 200 3 011 100 4 100 50 5 101 25 6 110 12.5 7 111 12.5 the active and ready bits are used to control the device operating mode. in standby mode (active = 0), the device is only capable of communication on the i 2 c or spi digital interfaces. in ready mode (ready = 1), the device is ready to measure angular rate but no data acquisitions are being made. the ready mode can be used to reduce the device power consumption and allow for a fast transition into the active mode when needed. in active mode (active = 1), the device is fully functional. the active bit has a higher priority than the ready bit as shown in table 48. register descriptions 46 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 48. device operating mode active ready operating mode 0 0 standby 0 1 ready 1 x active when ctrl_reg3[extctrlen] = 1, the active bit is directly controlled by the logic level input to the int2/pwr_ctrl pin and becomes read-only via the register interface. thus, the device operating mode can be directly controlled by the int2/pwr_ctrl pin when ctrl_reg3[extctrlen] =1. the weak pull-up resistor is internal to the ic and automatically enabled when ctrl_reg3[extctrlen] is set to 1, hence setting the active bit high. 6.16 0x14: ctrl_reg2 this register enables and assigns the output pin(s) and logic polarities for the various interrupt sources available on the device. table 49. ctrl_reg2 register bit 7 6 5 4 3 2 1 0 read int_cfg_fifo int_en_fifo int_cfg_rt int_en _rt int_cfg_drdy int_en_drdy ipo l pp_o d write reset 0 0 0 0 0 0 0 0 table 50. interrupt enable register descriptions register description 7 int_cfg_fifo fifo interrupt pin routing 0: interrupt is routed to int2 pin 1: interrupt is routed to int1 pin 6 int_en_fifo fifo interrupt enable 0: fifo interrupt disabled 1: fifo interrupt enabled table continues on the next page... register descriptions 47 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 50. interrupt enable register descriptions (continued) register description 5 int_cfg_rt rate threshold interrupt pin routing 0: interrupt is routed to int2 pin 1: interrupt is routed to int1 pin 4 int_en_rt rate threshold interrupt enable 0: rate threshold interrupt disabled 1: rate threshold interrupt enabled 3 int_cfg_drdy data-ready interrupt pin routing 0: interrupt is routed to int2 pin 1: interrupt is routed to int1 pin 2 int_en_drdy data ready interrupt enable 0: data-ready interrupt disabled 1: data-ready interrupt enabled 1 ipol interrupt logic polarity 0: active low 1: active high 0 pp_od int1 and int2 pin output driver configuration 0: push-pull output driver 1: open-drain/open-source buffer with ipol = 0/1, respectively table 51. int pin behavior as a function of pp_od and ipol bit settings int pin configuration pp_od ipol int asserted value int deasserted value cmos output 0 0 0 1 cmos output 0 1 1 0 external pull-up resistor added 1 0 0 high-z 1 external pull-down resistor added 1 1 1 high-z 1 1. high-z = tri-state (high impedance) condition; the state of the int pin will be defined by the external pull-up or pull-down resistor. 6.17 0x15:ctrl_reg3 this register is used to enable the fsr expansion, external power control input, and options to modify the auto-increment read address pointer behavior when doing burst reads of the fifo data. register descriptions 48 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
table 52. ctrl_reg3 register bit 7 6 5 4 3 2 1 0 read wraptoone extctrlen fs_double write reset 0 0 0 note control bits in ctrl_reg3 should only be changed when operating in standby or ready mode. accuracy of the output data is not guaranteed if any of these bits are changed while the device is operating in active mode. table 53. ctrl_reg3 register descriptions register description 3 wraptoone auto-increment read address pointer roll-over behavior: 0: the auto-increment read address pointer rolls over to address 0x00 (status) after the z-axis lsb is read (default). 1: the auto-increment pointer rolls over to address 0x01 (x-axis msb) in order to facilitate the faster read out of the fifo data in a single burst read operation (status register only needs to be read once). 2 extctrlen external power mode control input: 0: int2 pin is used as an interrupt output (default) 1: int2 pin becomes an input pin that may be used to control the power mode. note that when extctrlen is set, the interrupt outputs and related settings for the int2 pin are ignored. extctrlen allows the device operating mode to be controlled using the int2 pin (the pin becomes a high impedance input when this bit is set high). the input is level sensitive, and allows the host to transition the device operating mode from either standby to active or from ready to active (and vice-versa) depending on the operating mode, standby or ready, that was configured at the time this bit was set. 0 fs_double full-scale range expansion enable: 0: maximum full-scale range selections are as per table 37, selected via the ctrl_reg0[fs] field. 1: maximum full-scale range selections are doubled from what is shown in table 37. fs_double increases the dynamic range for each ctrl_reg0[fs] selection by a factor of two, from 250/500/1000/2000/s to 500/1000/2000/4000/s. this feature is provided to enable a higher dynamic range for applications such as sports equipment monitoring (e.g. golf club or tennis racket swings). while the full-scale range is doubled in this mode, the noise and nonlinearity of the signal are also increased. register descriptions 49 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
table 54. rate sensitivity changes with fsr_double setting fsr selection sensitivity (mdps/lsb) fsr_double = 0 sensitivity (mdps/lsb) fsr_double = 1 ctrl_reg0[fs] = 00 62.50 125.0 ctrl_reg0[fs] = 01 31.25 62.50 ctrl_reg0[fs] = 10 15.625 31.25 ctrl_reg0[fs] = 11 7.8125 15.625 7 printed circuit board layout and device mounting printed circuit board (pcb) layout and device mounting are critical to the overall performance of the design. the footprint for the surface mount packages must be the correct size as a base for a proper solder connection between the pcb and the package. this, along with the recommended soldering materials and techniques, will optimize assembly and minimize the stress on the package after board mounting. freescale application note an1902, "assembly guidelines for qfn and dfn packages" discusses the qfn package used by the FXAS21002C. 7.1 printed circuit board layout the following recommendations are meant to serve as general guidelines for realizing an effective pcb layout. see figure 24 for component pcb footprint dimensions. ? the pcb land pattern should be designed with non-solder mask defined (nsmd) as shown in figure 24. ? on the layer that the device is soldered, there should be no trace routing or vias underneath the device's component package. ? no components or vias should be placed at a distance less than 2 mm from the package land area. this may cause additional package stress if it is too close to the package land area. ? signal traces connected to pads should be as symmetric as possible. put dummy traces on the nc pads in order to have same length of exposed trace for all pads. ? no copper traces should be on the top layer of the pcb under the package, as this will cause planarity issues with the board mount. freescale qfn sensors are compliant with restrictions on hazardous substances (rohs), having halide-free molding compound (green) and lead-free terminations. these terminations are printed circuit board layout and device mounting 50 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
compatible with tin-lead (sn-pb) as well as tin-silver-copper (sn-ag-cu) solder paste soldering processes. reflow profiles applicable to those processes can be used successfully for soldering the devices. pcb land pad solder stencil opening 24x 0.8 24x 0.3 20x 0.5 4x 2.175 solder mask opening 4x 1.438 4.576 4x 1.938 4.576 package 24x 0.769 24x 0.269 20x 0.5 4x 2.160 package outline package outline 4 12 8 24x 0.30 0.18 4 24x 0.725 0.525 7 1 20 24 13 19 20x 0.5 package outline figure 24. footprint 7.2 overview of soldering considerations the information provided here is based on experiments executed on qfn devices. these experiments cannot represent exact conditions present at a customer site. therefore, information herein should be used for guidance purposes only. process and design optimizations are recommended to develop an application-specific solution. with the proper pcb footprint and solder stencil designs, the package will self-align during the solder reflow process. ? stencil thickness should be 100 or 125 m. printed circuit board layout and device mounting 51 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
? the pcb should be rated for the multiple lead-free reflow condition with a maximum 260 c temperature. ? use a standard pick-and-place process and equipment. do not use a hand soldering process. ? do not use a screw-down or stacking to mount the pcb into an enclosure. these methods could bend the pcb, which would put stress on the package. 7.3 halogen content this package is designed to be halogen free, exceeding most industry and customer standards. halogen free means that no homogeneous material within the assembled package will contain chlorine (cl) in excess of 700 ppm or 0.07% weight/weight or bromine (br) in excess of 900 ppm or 0.09% weight/weight. 8 package information the FXAS21002C platform uses a 24-lead qfn package, case number 2209-01. 8.1 product identification markings top view 263 f2102 alyw traceability date code assembly site lot code work week part number freescale code package information 52 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
8.2 tape and reel information figure 25. tape dimensions barcode label side of reel pin 1 direction to unreel figure 26. tape and reel orientation package information 53 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
8.3 package description this drawing is located at www.freescale.com/files/shared/doc/package_info/98asa00356d.pdf. package information 54 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
9 revision history revision number revision date description 0.3 3/2014 initial release of document 1.0 8/2014 added the following sections: ? mechanical and electrical specifications ? digital interfaces ? modes of operation ? functionality ? register descriptions ? printed circuit board layout and device mounting 1.1 11/2014 ? figure 1, removed byp ? table 2, removed t = 25c from test conditions ? table 6, removed "sensitivity error due to linear acceleration removed zero rate offset error due to linear acceleration added footnote to zero-rate offset, post-board mount" ? section 5.2, image, added latch and ele connection ? section 6.4, removed "reading f_status clears the src_fifo bit in the 0x0b: int_source_flag register." ? table 27, f_event field, added bullet: to clear this flag, both f_ovf and f_wmkf flags must be cleared. see f_status for details. ? table 27, f_event field, added bullet: to clear this field, the f_event flag must be cleared. ? table 29, src_fifo field, changed flag descriptions from 1: f_ovf or f_wmkf are set, provided the fifo interrupt is enabled (ctrl_reg2[int_en_fifo=1]) 0: cleared by reading the register to 1: when f_event flag is set (f_ovf or f_wmkf are set), provided the fifo interrupt is enabled (ctrl_reg2[int_en_fifo=1]) 0: cleared when f_event flag gets cleared (whenever both f_ovf and f_wmkf get cleared) ? table 29, src_rt field, changed bullets from ? indicates that the rate threshold event flag triggered the interrupt ? cleared by reading rt_src register to ? indicates that the rate threshold event flag(s) triggered the interrupt (when xrt or yrt or zrt(logical or) event threshold flags go high) ? cleared when xrt, yrt or zrt event threshold flags are cleared. ? section 6.11, added: "it also clears the rt_src flag in the 0x0b: int_source_flag register." ? added table 54, rate sensitivity changes with fsr_double setting 1.2 11/2014 ? removed last two features items ? minor changes to table 2, temperature sensor characteristics ? in mechanical characteristics table, changed typical parameters for zero-rate offset, zero-rate offset, post-board mount and integral nonlinearity and updated table footnotes. table continues on the next page... revision history 55 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
revision number revision date description ? updated electrical charactristics table, for supply current drain in standby mode, and supply current drain in standby mode over temperature parameters. also removed test condition on output data rate frequency tolerance parameter. ? changed table 8 serial interface pin descriptions, pin currently named sda/mosi/ spi_data and modified pin description. ? changed table 9, slave timing values, for parameter sda and scl fall time, minimum values for i 2 c fast mode. ? added table title to table 10. i 2 c register data address map. ? section 3.1.1, i2c operation, changed first paragraph to read external pull-up resistors connected to v ddio ... ? section 5, functionality, changed seventh bullet to read embedded rate threshold detection function with programmable debounce time ? added new column auto-increment address to table 13 register address map and populated the column with data. removed last two rows of table, auto-increment address and fast-read increment address. ? modified note after table 19 to read after this register is read, the next read register by the autoincrement process is status at 0x00, when ctrl_reg3[wraptoone] = 0, or out_x_msb when ctrl_reg3[wraptoone] = 1. 2.0 2/2015 ? moved section 2.1 to 2.5 ? figure 12, changed "spi_dio" to "spi_data" ? register 0x09: f_setup, added "the contents should only be modified when the device is in standby mode." ? table 29, field 1, changed "...xrt, yrt or zrt..." to "...xrt, yrt and zrt..." ? register 0x0e: rt_cfg, added "the internal state of the rate threshold function is reset when..." ? table 37, field 3, deleted second and third bullet ? register 0x0f: rt_src, added "the content of this register is reset upon a transition from standy to active or from ready to active modes. ? table 39: field 6 ? added "only if it has been latched (ele =1)" ? added to bit 1 "(xrt, yrt or zrt)" field 5 ? changed second bullet to "flag is asserted few samples (rt_count)..." ? added third bullet "cleared when the absolute value of z..." ? changed bit 0 from "z rate lower than rt_ths value" to "no rate threshold event detected on z-axis" ? changed bit 1 from "z rate greater than rt_ths event has occured" to "rate threshold event detected on z axis" field 4 ? changed first bullet from "indicates the rate polarity on the z-axis (if ztefe =1). if ztefe =1, this bit indicates the polarity of the z data irrespective of the rate threshold event detected on z-axis." to "indicates the rate polarity on the z-axis (if rt_cfg[ztefe] =1). if rt_cfg[ztefe] =1, this bit indicates the polarity of the z data irrespective of the rate threshold event detected on z-axis." field 3 ? changed second bullet to "flag is asserted few samples (rt_count)..." ? added third bullet "cleared when the absolute value of y..." ? changed bit 0 from "y rate lower than rt_ths value" to "no rate threshold event detected on y-axis" ? changed bit 1 from "y rate greater than rt_ths event has occured" to "rate threshold event detected on y-axis" field 2 table continues on the next page... revision history 56 freescale semiconductor, inc. 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015
revision number revision date description ? changed first bullet from "indicates the rate polarity on the y-axis (if ytefe =1). if ytefe =1, this bit indicates the polarity of the y data irrespective of the rate threshold event detected on y-axis." to "indicates the rate polarity on the y-axis (if rt_cfg[ytefe] =1). if rt_cfg[ytefe] =1, this bit indicates the polarity of the y data irrespective of the rate threshold event detected on y-axis." field 1 ? changed second bullet to "flag is asserted few samples (rt_count)..." ? added third bullet "cleared when the absolute value of x..." ? changed bit 0 from "x rate lower than rt_ths value" to "no rate threshold event detected on x-axis" ? changed bit 1 from "x rate greater than rt_ths event has occured" to "rate threshold event detected on x-axis" field 0 ? changed first bullet from "indicates the rate polarity on the x-axis (if xtefe =1). if xtefe =1, this bit indicates the polarity of the x data irrespective of the rate threshold event detected on x-axis." to "indicates the rate polarity on the x-axis (if rt_cfg[xtefe] =1). if rt_cfg[xtefe] =1, this bit indicates the polarity of the x data irrespective of the rate threshold event detected on x-axis." ? table 41, field 6:0, changed formula from "rate_threshold=ths*(full_scale/128)" to "rate threshold (in dps) = (ths + 1)* 256 * sensitivity (in dps/lsb)" and "rate_threshold(in lsb) = (ths + 1)* 256" 2.1 5/2015 ? table 5, self-test output change, min value of 7000 added and max value of 25000 added ? table 6 ? digital high level input voltage, added sclk ? low-level output voltage, added test condition of l o = 1 ma ? section 5, second bullet, changed ctrl_reg3[fsr_double] = 1 to ctrl_reg3[fs_double] = 1 ? table 13 ? f_event, added the default value of 0x00 ? int_src_flag, added the default value of 0x00 ? ctrl_reg3, changed auto-increment address from 0x16 to 0x00 ? reserved, added auto-increment address of address + 1 revision history 57 3-axis digital angular rate gyroscope, rev. 2.1, 5/2015 freescale semiconductor, inc.
how to reach us: home page: freescale.com web support: freescale.com/support information in this document is provided solely to enable system and software implementers to use freescale products. there are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. freescale reserves the right to make changes without further notice to any products herein. freescale makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does freescale assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. typical parameters that may be provided in freescale data sheets and/or specifications can and do vary in different applications, and actual performance may vary over time. all operating parameters, including typicals, must be validated for each customer application by customer's technical experts. freescale does not convey any license under its patent rights nor the rights of others. freescale sells products pursuant to standard terms and conditions of sale, which can be found at the following address: freescale.com/salestermsandconditions . freescale, and the freescale logo, are trademarks of freescale semiconductor, inc., reg. u.s. pat. & tm. off. the energy efficient solutions logo is a trademark of freescale semiconductor, inc. all other product or service names are the property of their respective owners. ? 2014-2015 freescale semiconductor, inc. document number FXAS21002C revision 2.1, 5/2015


▲Up To Search▲   

 
Price & Availability of FXAS21002C

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X